#!/usr/bin/env python

"""
All constants are in cgs units: cm, g, s
All conversions are to multiply the cgs units: i.e. cmtopc=pc/cm, gtoMsun=Msun/g, sectoyr=yr/sec, etc.
"""

# Constants
c=2.998*1e10 # Speed of light [cm/s]
h=0.7
OmBOmMfrac=0.143 
OmM=0.3
OmL=0.7
Zsolar=0.0199
G=6.673e-8 # Gravitational constant [cm^3/g/s^2]
sigT=0.665e-24 # Thomson cross-section [1/cm^2]
echarge=4.803e-10 # Electron charge [esu]
mp=1.673e-24 # Proton mass [g]
mn=1.675e-24 # Neutron mass [g]
me=9.109e-28 # Electron mass [g]
mH=1.673e-24 # Hydrogen mass [g]
amu=1.661e-24 # Atomic mass unit
kB=1.381e-16 # Boltzmann constant [erg/K]
eV=1.602e-12 # Electron volt [erg]


# Conversions
cmtoAU=1./(1.496e13) # AU/cm
cmtopc=1./(3.086e18) # pc/cm
cmtoly=1./(9.463e17) # ly/cm
gtoMsun=1./(1.99e33) # Msun/g
Lsun=1./(3.9e33) # Lsun/(erg/s)

cmtom=1e-2
gtokg=1e-3
ergtoJ=1e-7
dyntoN=1e-5
